package com.xxh.mqstudy.TopicReceive;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = {"testTopicQueue1"})
public class myTopicReceive01 {
    @RabbitHandler
    public void myreceive(String msg){

        System.out.println("这里是队列topic01,收到消息:"+msg);
    }
}
